package com.lzw.DailyAudit.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.hooya.fa.eu.biz.DailyAudit.entity.CkDict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ck_dict表的Mapper接口
 */
@Mapper
public interface DailyCkDictMapper {

    /**
     * 根据name获取字典数据
     * @param name 字典名称
     * @return 字典数据列表
     */
    @DS("fa_eu")
	@Select("SELECT * FROM ck_dict WHERE name = #{name}")
	List<CkDict> selectByName(@Param("name") String name);
}